﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Library
{
    class DalChiTietDDH
    {
        internal static List<ChiTietDDH> GetListByMa(String MaDDH)
        {
            List<ChiTietDDH> result = new List<ChiTietDDH>();

            QLDCTTEntities da = new QLDCTTEntities();

            try
            {
                result = (from dh in da.ChiTietDDH
                          where dh.MaDDH == MaDDH
                          select dh).ToList();
            }

            catch (Exception ex)
            {
                throw ex;
            }

            return result;
        }
    }
}
